package com.freesky.common.dao.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_role")
public class Role extends Model<Role> {
    private Integer id;

    private String name;

    private String description;

    @TableField(exist = false)
    private Integer[] roles;

    public Role() {}
    public Role(Integer id) {
        this.id = id;
    }
    @Override
    protected Serializable pkVal() {
        return id;
    }
}